﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum Npctype
    {
        Task,//任务类型
        Shop,//商贩类型
        Iron,//铁匠类型
    }
    abstract class NPC
    {
        private string name;
        private Npctype type;

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public Npctype Type
        {
            get { return this.type; }
            set { this.type = value; }
        }
        public NPC(string name, Npctype type)
        {
            this.name = name;
            this.type = type;
        }

        public NPC() { }
        public abstract void Speak();
    }
}
